import request from '@/utils/request'
import qs from 'qs'

export function list(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/stock/stocks',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function update(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/stock/update',
    method: 'post',
    data: qs.stringify(data)
  })
}
